import { get, post } from '@/utils/request';

// 接口返回数据类型定义
export interface DetailData {
  id: string;
  timestamp: string;
  location: string;
  status: string;
  description: string;
}

// 场景智能体接口
export const scanAgentApi = {
  // 获取详情列表
  getDetails: () => {
    return get<DetailData[]>(`/ai-traffic/scene/scenes`);
  },
  
  // 下载报告
  downloadReport: (eventId: string) => {
    return get<Blob>(`/ai-traffic/event/download/${eventId}`);
  },
  
  // 推送数据
  pushData: (data: any) => {
    return post('/push', data);
  },
};
